{include file="Public:header2"/}
<body>
<div class="layui-fluid">
  <div class="layui-card">
    <div class="layui-card-body">
      <xblock>
        <div style="padding-bottom: 10px;">
          <a class="layui-btn" onclick="ads_add()">添加广告账户</a>
        </div>
      </xblock>
      <table class="layui-table">
        <thead>
        <tr>
          <th>跳转路径</th>
          <th>账户</th>
<!--          <th>消费金额</th>-->
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr>
          <td>pages/shouye/index?ad_id={$vo['id']}</td>
          <td>{$vo['account_id']}</td>
<!--          <td>￥ {$vo['consume']}</td>-->
        </tr>
        {/volist}
        {if condition="empty($list)"}
        <tr>
          <td colspan='10' style="text-align:center;">暂时没有数据！</td>
        </tr>
        {/if}
        </tbody>
      </table>
    </div>
  </div>
</div>
{include file="Public:footer"/}
<script type="text/javascript">
  layui.use(['layer','table'], function(){
    var $ = layui.$;

  })
  function ads_add() {
    var url  = "{:url('/admin/ads_add')}";
    layer.open({
      type: 2,
      title: '添加广告分流',
      shadeClose: false,
      shade: 0.3,
      area: ['80%', '80%'],
      content: url,
    });
  }
</script>
</body>
</html>